import request from '@/utils/request'

export const getBuildingList = (data) => request.get('/park/building', { params: data })

export const addBuilding = (data) => request.post('/park/building', data)

export const delBuilding = (id) => request.delete(`/park/building/${id}`)

export const getBuildingDetail = (id) => request.get(`/park/building/${id}`)

export const updateBuilding = (data) => request.put('/park/building', {
  id: data.id,
  name: data.name,
  floors: data.floors,
  area: data.area,
  propertyFeePrice: data.propertyFeePrice
})
